package com.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 电影表（movie_list）
 */
@Setter
@Getter
@ToString
public class MovieList  {
  @TableId(value = "id")
  private long id;
  private String program_name;//节目名称
  private String program_name_yw;//节目名称的英文
  private String md5;//电影MD5
  private String program_type;//节目类型id,用逗号隔开
  private long viewing_level;//观看级别
  private long is_it_on_the_shelf;//是否上架（1是，0否)
  private String production_area;//出品地区
  private String year_of_production;//出品年份
  private String director;//导演
  private String performer;//演员
  private String brief_introduction;//简介
  private String little_poster;//小海报，图片地址
  private String big_poster;//大海报，图片地址
  private long vip_or_not;//是否vip（1是，0否）
  private Double douban_score;//豆瓣评分

  @TableField("home_pag_recommendation")
  private long home_page_recommendation;//首页推荐（1启用，0停用）
  private String source_type;//片源类型
  private long program_category_id;//外键，参考电影类型表（program_category）表的id取值
  private String path; //下载目录,不含 /home
  private String play_url; //播放地址
  private  int  isdown;//是不已下载1是，0不
  private Date recommended_time;//推荐时间
  private Date   copyright_expiration_time;
  private String program_type_name;//类型名称,隔开

  private String ip; //服务器IP

  private Integer port; //服务器端口

  private String local_img;//本地图片

  @Override
  public boolean equals(Object o){
    if (o instanceof MovieList)
    {
      MovieList s =(MovieList) o;
      if (this.id==s.id)
      {
        return true;
      }
    }
    return false;
  }

  @Override
  public int hashCode()
  {
    return (int)this.id;
  }





}
